import { getTopStatusLabel } from '../../../utils/order';

export const columns = [
  {
    prop: 'status',
    label: '状态',
    width: 100,
    formatter: (row) => getTopStatusLabel(row, 1),
    search: true
  },
  {
    prop: 'order',
    label: '订单信息',
    slot: 'orderSlot',
    width: 280,
    search: true
  },
  {
    prop: 'orderType',
    label: '订单类型',
    slot: 'orderTypeSlot',
    width: 100,
    search: true
  },
  {
    prop: 'state',
    label: '配送信息',
    slot: 'logisticsSlot',
    width: 200,
    search: true
  },
  {
    prop: 'salesman',
    label: '下发业务员',
    slot: 'salesmanSlot',
    width: 160,
    search: true
  },
  {
    prop: 'logisticsStatus',
    label: '物流追踪',
    minWidth: 220,
    slot: 'logisticsStatusSlot',
    search: true
  },
  // {
  //   prop: 'category',
  //   label: '类别',
  //   search: true,
  //   sortable: true,
  //   slot: 'categorySlot',
  //   width: 130
  // },
  {
    prop: 'dosage',
    label: '商品数量',
    slot: 'dosageSlot',
    width: 200
  },

  {
    prop: 'date',
    label: '下单/签收时间',
    slot: 'orderTimerSlot',
    width: 230
  },
  // {
  //   prop: 'wechat',
  //   label: '添加微信',
  //   width: 100,
  //   slot: 'wechatSlot'
  // },
  {
    prop: 'remark',
    label: '备注',
    slot: 'remarkSlot',
    width: 220
  },
  {
    prop: 'operation',
    label: '操作',
    fixed: 'right',
    slot: 'operationSlot',
    width: 120
  }
];
